all: Truck Need Event IEventDAO ITruckDAO DBManager DBTruckDAO DBEventDAO DBMediator Test

Truck:
	javac -d ./class ./data/model/Truck.java
Need:
	javac -d ./class ./data/model/Need.java
Event: Need Truck
	javac -d ./class -cp ./class ./data/model/Event.java

ITruckDAO:
	javac -d ./class -cp ./class ./data/dao/ITruckDAO.java

IEventDAO: Event
	javac -d ./class -cp ./class ./data/dao/IEventDAO.java

DBManager: 
	javac -d ./class -cp ./class  ./data/dao/DBManager.java

DBEventDAO: Event IEventDAO
	javac -d ./class -cp ./class ./data/dao/db/DBEventDAO.java

DBTruckDAO: Truck DBManager
	javac -d ./class -cp ./class ./data/dao/db/DBTruckDAO.java

DBMediator:
	javac -d ./class -cp ./class ./data/mediator/DBMediator.java

Test:
	javac -d ./class ./../tst/Test.java
	cd ./class ; java Test; cd ..
